<%-- 
    Document   : add_student_post
    Created on : Nov 24, 2011, 8:18:50 PM
    Author     : THIENSUHACK
--%>

<%@page import="java.util.Calendar"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="GetData.DataWS"%>
<%@page import="dktc_ws.Namhoc"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%

Namhoc yr = new Namhoc();
yr.setNam1(Integer.parseInt(request.getParameter("nam1")));
yr.setNam2(Integer.parseInt(request.getParameter("nam2")));
   int result=0;
   DataWS a=new DataWS();
   
result = a.themnamhoc(yr.getNam1(),yr.getNam2());
   if(result>0)
             {
       out.print("thanh cong");
       response.sendRedirect("/DKTC/admin/index.jsp?page=list_year");

   }
   else
       out.print("that bai");
           %>